import React, {
    Component
  } from 'react'
  import PropTypes from 'prop-types'

  class Header extends Component {
    static contextTypes = {
      themeColor: PropTypes.object
    }
    render() {
      return ( <h1 style = {{  color: this.props.themeColor} }> React.js 小书 </h1>)
    }
  }
  export default Header